class Emailer < ActionMailer::Base
  
  def new_submission(recipient, proposal, sent_at = Time.now)
      @subject = proposal[:title]
      @recipients = recipient
      @from = "ethik@humdek.unibe.ch "
      @sent_on = sent_at
      @body["proposal"] = proposal
      @headers = {}
  end
  
  def review_assigned(recipient, proposal, sent_at = Time.now)
      @subject = proposal[:title]
      @recipients = recipient
      @from = "ethik@humdek.unibe.ch "
      @sent_on = sent_at
      @body["proposal"] = proposal
      @headers = {}
  end
  
end
